package cn.mw.cmdb.listener;

import cn.mw.cmdb.param.ContextAddListener;
import cn.mw.cmdb.param.ContextDeleteListener;
import cn.mw.cmdb.param.ContextEditorListener;

import java.util.EventListener;

public interface InstanceChangeEventLister extends EventListener {
    public static final String relationPropertyId = "mw_instanceName";

    default Integer getSortLevel() {
        return null;
    }

    void addReceive(ContextAddListener contextListener) throws Exception;

    Object editorReceive(ContextEditorListener contextListener) throws Exception;

    void deleteReceive(ContextDeleteListener contextListener) throws Exception;

}
